cmake_minimum_required(VERSION 3.5.0)

project(fxcc_platform_glfw_project)

set(CMAKE_CXX_STANDARD 17)

set (imgui_src 
${CMAKE_SOURCE_DIR}/_deps/imgui/backends/imgui_impl_glfw.cpp
)
file(GLOB local_src *.cpp)
file(GLOB local_header *.h)

add_library(fxcc_platform_glfw ${local_src} ${local_header} ${imgui_src})

target_link_libraries(fxcc_platform_glfw PUBLIC glfw3 fxcc_platform_common)

if(UNIX)
target_link_libraries(fxcc_platform_glfw PUBLIC pthread dl GL )
endif()

if(WIN32)
target_link_libraries(fxcc_platform_glfw PUBLIC legacy_stdio_definitions opengl32)
endif()